SendbirdHmsPushHandler

abstract class SendbirdHmsPushHandler : AbstractPushHandler<RemoteMessage>

SendbirdHmsPushHandler. This handler provides callbacks for receiving notifications from HMS. All callbacks are called only when registered.

Since

3.0.133

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isUniquePushToken: Boolean = false

If true, all the previously registered token for the current User will be deleted and this token will be the unique one. Default value is false

Functions

Link copied to clipboard
open override fun alwaysReceiveMessage(): Boolean

When the push payload is received, the SDK checks for the below conditions and drops the message if either one of the condition is satisfied.

Link copied to clipboard
abstract override fun onMessageReceived(context: Context, remoteMessage: RemoteMessage)

Called if new message received from Sendbird or the other HMS Provider. Other non-SendbirdChat payloads will be passe through so your app can handle HMS payloads from other back-ends.

Link copied to clipboard
open override fun onNewToken(newToken: String?)

Called if InstanceID token is updated. This may occur if the security of the previous token had been compromised. Note that this is called when the InstanceID token is initially generated so this is where you would retrieve the token.